var vm =new Vue({
    el:"#app",
    data:{
        searchArr:["三文鱼","披萨","汉堡包"],
        searchText:''
    },
    methods:{
        search(){
            if(this.searchText){
                this.searchArr.push(this.searchText);
            
            this.searchText='';
        }
        }
    }
})